
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="orgInfo" cellspacing="1">
	<tr><td colspan="6" class="t_bar">&nbsp;单位基本信息</td></tr>
	<tr>
		<td width="120px" nowrap align="right">单位名称：</td>
		<td colspan='5'>
		    <input type="hidden" name="organizations/organization[0]@submit_org" value="1" > 
			<input type="hidden" name="organizations/organization[0]@sequence_no" value="1" >
			<input type="hidden" name="organizations/organization[0]/org_code" 
							value="<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_code"/>" >
			<span name="organizations/organization[0]/cname">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_name"/>
			</span>&nbsp;
		</td>
    </tr>
    <tr>
		<td align="right">法人代码：</td>
		<td width="200px">
		    <span name="organizations/organization[0]/org_no">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_no"/>
			</span>&nbsp;
		</td>
		<td width="120px" nowrap align="right">营业执照注册号：</td>
		<td width="200px" colspan="3">
		    <span name="organizations/organization[0]/org_licence">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/org_licence"/>
			</span>&nbsp;
	    </td>
    </tr>
    <tr>
        <td width="" nowrap align="right">通讯地址：</td>
		<td >
			<span name="organizations/organization[0]/address">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/address"/>
			</span>&nbsp;
		</td>
		<td width="" nowrap align="right">单位网址：</td>
		<td colspan='3'>
			<span name="organizations/organization[0]/http">
				 <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/http"/>
			</span>&nbsp;
		</td>
    </tr>
    
    <tr>
		<td align="right">注册时间：</td>
		<td>
		    <span name="organizations/organization[0]/registe_date">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_date"/>
			</span>&nbsp;
		</td>
		<td align="right">注册资金：</td>
		<td colspan="3">
		    <span name="organizations/organization[0]/registe_fund">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund"/>万<x:out select="$xmlData/data/organizations/organization[@submit_org=1]/registe_fund_money_name"/>
			</span>
	    </td>
	    
    </tr>
    
    <tr>
        <td align="right">法定代表人：</td>
		<td>
			<input type="hidden"
			  name="organization_persons/organization_person[00]@psn_type" value="faren">
			<span name="organization_persons/organization_person[00]/cname">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/cname"/>
			</span>
			
		</td>
		<td align="right">电话：</td>
		<td>
			<span name="organization_persons/organization_person[00]/tel">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/tel"/>
			</span>
		</td>
		<td align="right">手机：</td>
		<td>
			<span name="organization_persons/organization_person[00]/mobile">
				<x:out select="$xmlData/data/organization_persons/person[@type='faren']/mobile"/>
			</span>
		</td>
    </tr>
    <tr>
		<td align="right">开户银行：</td>
		<td >
		    <span name="organizations/organization[0]/bank_orgname">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_orgname"/>
			</span>&nbsp;
		</td>
		<td align="right">银行账号：</td>
		<td  colspan="3">
		    <span name="organizations/organization[0]/bank_account">
			   <x:out select="$xmlData/data/organizations/organization[@submit_org=1]/bank_account"/>
			</span>&nbsp;
	    </td>
	    
    </tr>
    <tr>
        <td align="right"><span class="color_red">*</span>单位特性：</td>
		<td colspan='5' >
			<label style="margin-right:10px;"><input type="checkbox" name="chk_characteristic1" value="01" label="大专院校" class="do">1、大专院校</label>
			<label style="margin-right:10px;"><input type="checkbox" name="chk_characteristic1" value="02" label="科研机构  " class="do">2、科研机构 </label>
			<label style="margin-right:10px;"><input type="checkbox" name="chk_characteristic1" value="03" label="高新技术企业" class="do">3、高新技术企业 </label>
			<label style="margin-right:10px;"><input type="checkbox" name="chk_characteristic1" value="04" label="协会等团体组织  " class="do">4、协会等团体组织  </label>
			<label style="margin-right:10px;"><input type="checkbox" name="chk_characteristic1" value="05" label="中介机构 " class="do">5、中介机构 </label>
			<label style="margin-right:10px;"><input type="checkbox" name="chk_characteristic1" value="06" label="其他" class="do">6、其他 </label>
			
			<input type="hidden" name="proposal/chk_characteristic1_value" label="单位特性" class="required" value="<x:out select="$xmlData/data/proposal/chk_characteristic1_value" />" />
			<input type="hidden" name="proposal/chk_characteristic1_name"  value="<x:out select="$xmlData/data/proposal/chk_characteristic1_name" />" />
		</td>
    </tr>
    <tr>
        <td align="right">项目负责人：</td>
		<td  >
			<input type="hidden"
			  name="organization_persons/organization_person[01]@psn_type" value="xmfuzeren">
			<span name="organization_persons/organization_person[01]/cname">
				<x:out select="$xmlData/data/zh_persons/zh_person/basic_info/zh_name"/>
			</span>
		</td>
    
		<td align="right">性别：</td>
		<td >
		   <c:set var="gender_value" ><x:out select="$xmlData/data/zh_persons/zh_person/basic_info/gender_value" /></c:set>
				
			<c:choose>
				<c:when test="${gender_value eq 'M' }">
					<span name="org_persons/organization_person[01]/gender">男</span>
				</c:when>
				<c:otherwise>
					<span name="org_persons/organization_person[01]/gender">女</span>
				</c:otherwise>
			</c:choose>
		</td>
		<td align="right">学历：</td>
		<td >
		    <span type="hidden" name="org_persons/organization_person[01]/educate_background">
		    	<x:out select="$xmlData/data/zh_persons/zh_person/basic_info/degree_name" />
			</span>
	    </td>
    </tr>
    <tr>
        <td align="right">职务：</td>
		<td>
			<span name="organization_persons/organization_person[01]/position">
				<x:out select="$xmlData/data/zh_persons/zh_person/basic_info/position"/>
			</span>
		</td>
    
		<td align="right">职称：</td>
		<td >
			<span name="organization_persons/organization_person[01]/prof_title_name">
				<x:out select="$xmlData/data/zh_persons/zh_person/basic_info/prof_title_name"/>
			</span>
		</td>
		<td align="right">电话：</td>
		<td >
			<span name="organization_persons/organization_person[01]/tel">
				<x:out select="$xmlData/data/zh_persons/zh_person/contact/tel_work"/>
			</span>
		</td>
    </tr>
    <tr>
        <td align="right">手机：</td>
		<td>
			<span name="organization_persons/organization_person[01]/mobile">
				<x:out select="$xmlData/data/zh_persons/zh_person/contact/mobile"/>
			</span>
		</td>
    
		<td align="right">电子邮箱：</td>
		<td colspan="3">
			<span name="organization_persons/organization_person[01]/email">
				<x:out select="$xmlData/data/zh_persons/zh_person/contact/email"/>
			</span>
		</td>
    </tr>
</table>
<br>
<div class="t_bar">
	<span class="color_red">*</span>其他主要参与单位
</div>
<table class="table01" width="100%" border="0" cellpadding="0" id="otherOrgInfo" cellspacing="1">
	<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="80px">选择</th>
						<th class="TblHead" align="center"  width="80px">序号</th>
						<th class="TblHead" align="center">单位名称</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selotherOrg" >
						</td>
						<td align="center">&nbsp;
							<span name="otherorginfos|organization[0]@seq_no" >[index]</span> 
						</td>
						<td >
							<input name="otherorginfos|organization[0]|name" label="单位名称" value="" class="required input_text " style="width:700px"/>
						</td>
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/otherorginfos/organization" var="organization">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selotherOrg" >
						</td>
						<td align="center">
							<span   name="otherorginfos/organization[${flag}${index}]@seq_no" ><x:out select="$organization/@seq_no"/></span> 
						</td>
						<td >
							<input name="otherorginfos/organization[${flag}${index}]/name"  value="<x:out select="$organization/name"/>" class="required input_text " style="width:700px" label="单位名称" />
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("otherOrgInfo");
					</script>
				</tbody>
					</table>
					<br>

					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('otherOrgInfo',10,'其他主要参与单位信息最多只能填写10条')){addNewRow('otherOrgInfo');showDateTag('otherOrgInfo');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('otherOrgInfo','selotherOrg')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('otherOrgInfo','selotherOrg')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('otherOrgInfo','单位信息')">
					</td></tr>
	</table>
<br>
<div class="t_bar">
	<span class="color_red">*</span>申请单位近三年承担的国家、省、市软课题情况
</div>
<table class="table01" width="100%" border="0" cellpadding="0" id="tblCYRKList" cellspacing="1">
	<thead >
					<tr style="border:1px solid #B7D1E6">
						<th class="TblHead" align="center"  width="80px">选择</th>
						<th class="TblHead" align="center"  width="80px">序号</th>
						<th class="TblHead" align="center">项目名称</th> 
						<th class="TblHead" align="center">立项单位</th> 
						<th class="TblHead" align="center" width="200px">金额（单位:万元）</th> 
					</tr>
			</thead>
			<tbody id="tab">
					<tr style="display:none">
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selCYRkt" >
						</td>
						<td align="center">&nbsp;
							<span name="cyrkxs|cyrkx[0]@seq_no" >[index]</span> 
						</td>
						<td >
							<input name="cyrkxs|cyrkx[0]|zh_name" label="项目名称" value="" class="required input_text " style="width:230px"  />
						</td>
						<td >
							<input name="cyrkxs|cyrkx[0]|org_name" label="立项单位" value="" class="required input_text " style="width:230px"/>
						</td>
						<td align="center">
							<input name="cyrkxs|cyrkx[0]|fund" label="金额" value="" class="required input_text " style="width:100px;text-align:right;"  onfocus="InitInput.setNumber(this,7,4,2)"/>
						</td>
					</tr>
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/cyrkxs/cyrkx" var="cyrkx">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selCYRkt" >
						</td>
						<td align="center">
							<span   name="cyrkxs/cyrkx[${flag}${index}]@seq_no" ><x:out select="$cyrkx/@seq_no"/></span> 
						</td>
						<td >
							<input name="cyrkxs/cyrkx[${flag}${index}]/zh_name" label="项目名称" value="<x:out select="$cyrkx/zh_name"/>" class="required input_text " style="width:230px"  />
						</td>
						<td >
							<input name="cyrkxs/cyrkx[${flag}${index}]/org_name" label="立项单位" value="<x:out select="$cyrkx/org_name"/>" class="required input_text " style="width:230px"/>
						</td>
						<td align="center">
							<input name="cyrkxs/cyrkx[${flag}${index}]/fund" label="金额" value="<x:out select="$cyrkx/fund"/>" class="required input_text " style="width:100px;text-align:right;"  onfocus="InitInput.setNumber(this,7,4,2)"/>
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					<script type="text/javascript">
						showAllDateTag("tblCYRKList");
					</script>
				</tbody>
					</table>
					<br>

					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tblCYRKList',10,'申请单位近三年承担的国家、省、市软课题情况最多只能填写10条')){addNewRow('tblCYRKList');showDateTag('tblCYRKList');}try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblCYRKList','selCYRkt')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblCYRKList','selCYRkt')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblCYRKList','申请单位近三年承担的国家、省、市软课题情况')">
					</td></tr>
	</table>